package com.hanqian.kepler.core.service.core;

import com.hanqian.kepler.common.base.service.BaseService;
import com.hanqian.kepler.common.jpa.specification.Rule;
import com.hanqian.kepler.core.entity.primary.core.TargetDesc;
import com.hanqian.kepler.core.entity.primary.core.TargetDescEvaluate;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * newFile
 * ============================================================================
 * author : dzw
 * createDate:  2021/1/6 。
 * ============================================================================
 */
public interface TargetDescEvaluateService extends BaseService<TargetDescEvaluate, String> {

	/**
	 * 根据指标描述获取当前的评价列表
	 */
	Page<TargetDescEvaluate> findEvaluatePageByTargetDesc(TargetDesc targetDesc, Integer v, Pageable pageable, List<Rule> rules);

	/**
	 * 获取总评论数
	 */
	Long findEnableCount();

}
